package abstr;

import func.MenniuFactory;
import func.TelunsuFactiory;
import func.YiLiFactory;
import milk.Mengniu;
import milk.Milk;

/**
 * @author liusl
 * @date 2019/2/2-14:46
 */
public class MilkFactory extends AbstractFactory {

    @Override
    public Milk getMentniu() {
        return new MenniuFactory().getMilk();
    }

    @Override
    public Milk getYili() {
        return new YiLiFactory().getMilk();
    }

    @Override
    public Milk getTelunsu() {
        return new TelunsuFactiory().getMilk();
    }
}
